// @ts-ignore
/* eslint-disable */


import { videoRequest} from "@/utils/HttpRequest";


export async function findByPageList(params?: any) {
  //SwaggerResources


  return videoRequest<API.LoginLog> (
    "findByPageList", {
      method: "GET", params: {...params}
    } )


}

export async function findByPageDetails(params?: any) {
  //SwaggerResources


  return videoRequest<API.LoginLog> (
    "findByPageDetails", {
      method: "GET", params: {...params}
    } )


}


export async function findByCategoryDataList() {
  //SwaggerResources


  return videoRequest<API.LoginLog> (
    "findByCategoryDataList", {
      method: "GET"
    } )
}


  export async function findByVideoCategorySelectList() {

  return new Promise<API.GlobalStatus[]> ( (resolve, reject) => {
    videoRequest<API.BaseArrayDataResult<API.GlobalStatus>> (
      "findByCategoryList", {
        method: "GET"
      } ).then ( (res) => {
      //   console.log("category/findBySelectList",res)
      resolve ( res?.data )
    } ).catch ( (e => {
      reject ( e )
    }) )
  } )
}
export async function editVideo(params: API.Goods) {
  return videoRequest<API.BaseResult> ( "edit", {
    method: "POST",
    data: params
  } )
}
export async function editDetailsVideo(params: API.Goods) {
  return videoRequest<API.BaseResult> ( "editDetails", {
    method: "POST",
    data: params
  } )
}



